import $ from 'jquery'
export default {
  echartsStyleNormal(vue, id, option) {
    const myChart = vue.$echarts.init(document.getElementById('main'));
    myChart.setOption(option);
  },
  focusset(vue, value) {
    setTimeout(function() {
        $('#' + value).focus()
    }, 0)
  },
  formatFloat: function (f, digit) {
      var m = Math.pow(10, digit);
      return Math.round(f * m, 10) / m;
  }
}
